home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-11
/
butt01.zip
/
BUTTON.DOC
< prev
next >
Wrap
Text File
|
1993-01-04
|
10KB
|
318 lines
k
Archive Name : BUTT01.ZIP
FoxCode Template : Button.Gen
Language : FoxBase 2.1 & FoxPro
Doc File : Button.Doc
------------------
Archive Files List
------------------
BUTT01.ZIP - Preliminary Documentation for Button Menus
*****************************************************************
Button Menu Version 1 - 4/03/90
*****************************************************************
-=< Button Menu Features >=-
FoxView Designed Windows
FoxBase + 2.01 Output Code
FoxPro Output Code
Mouse Support in FoxPro
Help Windows
Radio Buttons
Check Boxes
Text Buttons
Hot Keys
xBase Code Inserted
* Scrollable List
* GET Fields
*NOTE: These items are not supported in Version 1
=================================================================
INTRODUCTION :
==============
This template is designed to allow the user to create a control
panel in FoxView and then generate a menu with "Radio Buttons",
"Check Boxes" and "Text Buttons".
If you find this template useful and convenient to use, a
registration of $20 would be appreciated. If you send $30 or
more you will receive, when available, the next version of the
BUTTON Menu Template. Please state the archive version number of
the software that you currently have. Send check or money order
to:
M I S Consulting
2003 South 51st Street
Tampa, Fl. 33619
Send comments to Charles Alan Butler via Compuserve. (72251,633)
=================================================================
DEFINITIONS :
=============
"Radio Buttons" are groups of choices where only one of the group
is chosen. The screen symbol is "( )" for a "Radio Button" and
"(*)" when it is selected. Selecting another in the group will
move the marker, clearing the previous mark. The screen designer
must place the "( )" as the first three characters of the text
object. You will want to pad out the right side of the text
object so that all within a group are of the same length. See
"Flags" for more information.
"Check Box" is a single choice that is set ON or OFF. The screen
symbol for this is "[ ]" and "[X]" when it is set ON. The screen
designer must place the "[ ]" as the first three characters of
the text object. Normally there is no sub menu associated
with "Check Boxes", but they are supported with this template.
See "Flags" for more information.
"Text Buttons" are menu choices that initiate action of some
type. The most common are <<OK>> and <Cancel>. <<OK>> may be
selected any time by pressing Ctrl-Enter. <Cancel> may be
selected at any time by pressing Escape. See "Flags" for more
information.
=================================================================
MOUSE :
=======
The mouse is supported in FoxPro. The upper left corner of the
box is the Escape Icon. The bottom row is the Help Trigger. All
menu pads when clicked on act as though the highlight was on and
Enter was pressed.
=================================================================
KEYBOARD :
==========
Key strokes that are supported are as follows:
Key Action
Enter Select highlighted menu item
Space Select highlighted menu item
Ctrl-Enter Exit control panel
Ctrl-End Exit control panel
Esc Exit control panel
F1 or H Pop up Help window
Up/Down Move Highlight one item
Tab/Shift Tab Move Highlight one group
Home Move Highlight to first item
End Move Highlight to last item
=================================================================
HOT KEYS :
===========
Hot Keys may be used in any "Radio Button", "Check Box" or "Text
Button" by including in the FoxView text object the characters \<
before the "Hot Key". The color of the "Hot Key" must be entered
as the second parameter in the user field. It is entered without
quotes. The template does not test this entry for correctness.
=================================================================
USER AREA :
===========
The User Area of the control panel box must have the letter
"W" in it and may be followed with the color of the highlight bar.
If the color is not included, the FIELD color is used. M;w+/n
The User Area in FoxView is used to inform the template which
text objects are menu choices. The Flags are as follows:
<Type Flag>;<Hot Key Color>;[<Default Value>;]<Action when tagged
True>
The <Default Value> is only used for 'B' and 'C' Flags.
---- Flag --------------------- Meaning --------------
B1;; Group 1 Radio Button
B1;;T; Set to true upon entry
C;; Check Box item
C;;T; Set to ON upon entry
C;; Set to OFF upon entry
OK;; Text Button for normal exit
ESC;; Text Button for abort exit
M;; Text Button for menu action
=================================================================
xBASE CODE :
===============
These Feature Are Not Supported in Version 1.0
You may enter xBase code after the semi-colon which will be added
to the process of the menu item. "Radio Buttons" and "Check
Boxes" reserve the first three parameters for Flags and add the
remaining parameters to the program as xBase Code.
B1;;;Do SubMenu or B1;;T;Do SubMenu
"Text Buttons" use the first and second parameters as a Flag.
ESC;;AbortFlag =.T. or M;;Do SubMenu;Exit
You may have up to 12 xBase code lines as long as they will fit
in the USER AREA.
*NOTE: All USER AREA entries should be entered without quotes
and separated with a semi-colon.
=================================================================
COLOR :
=======
The "User Area" of the first box object is where the highlight
color is looked for. If not found the "Field" color of the box
object is used. See "USER AREA".
The color set in FoxView for each text object is used by the
generated program. In FoxView use Ctrl-P to set the color.
If "Hot Keys" are defined the color must be placed in the second
parameter of the "USER FIELD".
Groups of items, "Radio Buttons" especially, should be separated
on the screen physically or by different colors so that the end
user may clearly identify these groups.
=================================================================
VARIABLES :
===========
Two variables are used as PUBLIC and they are "Ky" and "T_F".
"Ky" is numeric and and is the ASCII value of the exit key. It
will be 10 if the user wishes to proceed or 27 if the user
aborted. The exit key may also be tested in FoxPro using the
LASTKEY( ) function. "T_F" is a logical array representing the
condition of the "Radio Buttons", "Check Boxes" and "Text
Buttons" upon exit from the Control Panel.
Because this array is made public you must release it unless you
want to preserve the conditions and re-call the Control Panel.
If you use a second Control Panel as a sub menu you must change
the name of this array in the second Control Panel.
All other variables are used as PRIVATE.
=================================================================
ENVIRONMENT :
=============
The screen is saved and restored as well as FoxBase. The colors
are restored in both FoxBase and FoxPro.
=================================================================
FEED BACK :
===========
If you have any suggestions for improving this template or any
comment at all, please contact me via Compuserve 72251,633. Any
comments are welcome.
=================================================================
Liability:
==========
MIS Consulting makes no representations or warranties with
respect to the merchantability or fitness of this program for any
particular purpose. In no event shall MIS Consulting be liable
for any loss of profit or any commercial damage, including but
not limited to special, incidental, consequential or other
damages. Further, MIS Consulting reserves the right to revise
this program and documentation at any time without obligation to
notify any person or organization of such revision.
=================================================================
Shareware:
==========
This product is Shareware. You may try out the utility to see if
it is useful for you. If it does increase your productivity, you
should send your registration to MIS Consulting for your licensed
agreement. This utility may not be distributed in its
source code form. The utility may be distributed in a
compiled form, provided a distribution license is obtained.
****************************************************************
*** FoxBase is a trademark of Fox Software, Inc. ***
*** FoxBase 2.1 is a Copyright of Fox Software, Inc. ***
*** WordStar is a trademark of MicroPro International Corp ***
****************************************************************
End Button.Doc